/**
 * 
 */
package utils;

import java.util.Hashtable;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.servlet.http.HttpServletRequest;


/**
 * @author Debora
 *
 */
public class SeU {
	public static final String USERNAME_ATTRIBUTE = "username";
	public static final String PASSWORD_ATTRIBUTE = "password";
	public static final String NAME_ATTRIBUTE = "name";
	public static final String SURNAME_ATTRIBUTE = "surname";
	public static final String EMAIL_ATTRIBUTE = "email";
	public static final String DATANASCITA_ATTRIBUTE = "datanascita";
	public static final String USER_ATTRIBUTE = "user";
	public static final String MAIL_ATTRIBUTE = "mail";
	public static final String LOGIN_BEAN_ATTRIBUTE = "login_bean";
	public static final String STATUS_ATTRIBUTE = "status";
	public static final String REQUEST_ATTRIBUTE_ID = "public_request_ID";
	public static final String SUBJECT_ATTRIBUTE = "subject";
	public static final String TEXT_ATTRIBUTE = "text";
	public static final String CONVERSATIONS_ATTRIBUTE = "conversations";
	public static final String CONVERSATION_ATTRIBUTE = "conversation";
	public static final String N_MESSAGE_ID = "new_message_id";
	public static final String RESPONSE_ATTRIBUTE_ID = "response_attribute_id";
	public static final String FRIENDS_ATTRIBUTE = "friends_attribute";
	public static final String FR_REQUEST_ATTRIBUTE = "fr_request_attribute";
	public static final String AB_REQUEST_ATTRIBUTE = "ab_request_attribute";
	public static final String AB_UTENTE_ATTRIBUTE = "ab_utente_attribute";
	public static final String AB_LIST_ATTRIBUTE = "ab_list_attribute";
	public static final String SEARCH_ATTRIBUTE = "search_attribute";
	
	static public Context getInitialContext() throws Exception
	{
		//TODO: Riguardare PROVIDER URL PORT
		Hashtable<String,String> env = new Hashtable<String,String>();
		env.put( Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory" );
		env.put( Context.PROVIDER_URL, "localhost:1099" );

		return new InitialContext( env );
	}
}
